import { ref } from "vue"
import { listPartner } from "../../../api/manage/partner"
import { loadAllParams } from "../../../api/page"

export const usePartner = () => {
  const partnerList = ref([])

  const getPartnerList = async () => {
    console.log("loadAllParams", loadAllParams)
    const { rows } = await listPartner(loadAllParams)
    partnerList.value = rows
  }

  onMounted(() => {
    getPartnerList()
  })

  return {
    partnerList
  }
}